package com.lyz.objectd1;

/**
 * @ClassName Card
 * @Description 卡牌抽象父类
 * @Author 2214361854
 * @Date 2022/2/18 19:28
 * @Version 1.0
 */
public abstract class Card {
    private String name;
    private double money;

    /**
     * 抽象方法
     * @param money
     */
    public abstract void pay(double money);

    public Card() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }
}
